package com.kaili.common.exception;

import com.kaili.common.response.CommonStatus;

/**
 * 自定义异常
 * @Copyright: Copyright (c) 2017
 * @Company: 杭州凯立通信有限公司
 * @author zhengs
 * @version 1.0.0 2017年7月20日 下午3:27:40
 */
public class RestException extends Exception {
	private static final long serialVersionUID = 1L;
	private CommonStatus status;
	
    public RestException() {
        super();
    }
    
    public RestException(CommonStatus status) {
    	this.status = status;
    }
    

    public RestException(String message) {
        super(message);
    }
    
    public RestException(String message, Throwable cause) {
        super(message, cause);
    }

	public CommonStatus getStatus() {
		return status;
	}

	public void setStatus(CommonStatus status) {
		this.status = status;
	}
}
